package me.zingon.common;

/**
 * Created by ZTC on 2016-11-07.
 */
public enum Code {
    UserSuccess("用户绑定成功","0000"),
    UserExist("此账号已绑定过了","0001"),
    UserError("用户信息输入错误","0002"),

    RegisterSuccess("注册成功","0002"),
    ActiveUser("请先激活账户","0003"),
    ActiveSuccess("激活账户成功","0004"),

    LoginError("登录失败，用户名或密码错误","0001");

    String name;
    String code;

    private Code(String name,String code){
        this.name=name;
        this.code=code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
